import * as React from 'react';
import {Link} from 'react-router-dom';
import {observer} from 'mobx-react';
import HomeStore from './store';

@observer
export default class extends React.Component<any> {
    public props: {
        states: any;
    }

    constructor(props: any) {
        super(props);
    }

    public render() {
        // console.log(this)
        return (
            <div>
                <h1>我是是首页啊</h1>
                <h2>{HomeStore.age}</h2>
                <h2>{HomeStore.name}</h2>
                <h2 onClick={HomeStore.onAddAge}>上我上我</h2>
                <Link to="/user">去用户中心</Link>
            </div>
        )
    }
}